<%-- 
    Document   : index
    Created on : 15-sep-2014, 20:55:18
    Author     : JoseHernan
--%>
<%
    if (session.getAttribute("userName") == null) {
%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    String mensaje = request.getParameter("mensaje");
    if (mensaje == null) {
        mensaje = "";
    }
%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>XSIS v1.0 - Expert System for Information Security</title>
        <link rel="stylesheet" href="View/css/metro-bootstrap.css">
        <link rel="stylesheet" href="View/css/metro-bootstrap-responsive.css">
        <link rel="stylesheet" href="View/css/iconFont.css">
        <script src="View/js/jquery/jquery.min.js"></script>
        <script src="View/js/jquery/jquery.widget.min.js"></script>
        <script src="View/js/jquery/jquery.mousewheel.js"></script>
        <script src="View/js/metro/metro.min.js"></script>
        <script src="View/js/metro/metro-dropdown.js"></script>
    </head>
    <body class="metro" style="height: 92%;">
        <div class="container" style="padding-left: 10%;">
            <div class="grid">
                <div class="row">
                    <div class="span6">
                        <div class="grid fluid">
                            <div class="row">
                                <img src="View/images/Meetings-Standing-Up-Blue-a.jpg">
                            </div>
                            <div class="row" style="height: 150px; margin-top: 0px; background-color: #015786;">
                                <div style="padding-left: 40px; padding-right: 40px;">
                                    <h1><font style="color: white" size="5"><strong>XSIS</strong></font></h1>
                                    <p style="color: white; font-size: 12px;">El Sistema Auditor Experto que estabas buscando y más... </p>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="span4" style="padding-top: 8%; padding-left: 20px;">
                        <form id="form" name="form" method="POST" action="C_Login">
                            <div class="grid fluid">
                                <h2 style="color: #015786;"><strong><i class="icon-earth"></i> XSIS </strong></h2>
                                <label style="font-size: 12px;">Ingrese su cuenta XSIS</label>
                                <div class="input-control text" data-role="input-control">
                                    <input type="text" name="usuario" placeholder="Usuario" required="">
                                    <button class="btn-clear" tabindex="-1" type="button"></button>
                                </div>
                                <div class="input-control password">
                                    <input type="password" name="pass" placeholder="Contraseña" required="">
                                    <button class="btn-reveal"></button>
                                </div>
                                <div class="input-control checkbox" data-role="input-control">
                                    <label style="font-size: 12px;">
                                        <input type="checkbox" >
                                        <span class="check"></span>
                                        Mantener la Sesión Iniciada
                                    </label>
                                </div>
                                <div>
                                    <button type="submit" class="button fg-white" style="background-color: #015786;">
                                        <strong>Iniciar Sesión</strong>
                                    </button>
                                </div>
                                <div>
                                    <span class="fg-red" style="font-size: 12px;"><%= mensaje%></span>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </body>
</html>
<% } else {
        out.print("<script language='Javascript'>"
                + "window.top.location.href = 'home.jsp'"
                + "</script>");
    }%>